﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true"
    CodeFile="MyProfile.aspx.cs" Inherits="MyProfile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <center>
        <div>
            <div class="formContainer">
                <table style="width: 80%; border-collapse: collapse;" border="0" cellpadding="6"
                    cellspacing="0">
                    <tr>
                        <td class="HeadingFormatDefault Heading" colspan="2">
                            Profile Update
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:ValidationSummary ValidationGroup="CreateUserWizard1" ID="ValidationSummary1"
                                runat="server" ShowMessageBox="True" ShowSummary="False" />
                            <asp:Label ID="lblErrorMsg" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="formLabel">
                            User Name
                        </td>
                        <td class="formValue">
                            <asp:TextBox ID="txtUserName" CssClass="Textbox" runat="server" ReadOnly="True"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="valRequireUserName" runat="server" ControlToValidate="txtUserName"
                                SetFocusOnError="true" Display="Dynamic" ErrorMessage="Username is required."
                                ToolTip="Username is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="formLabel">
                            Password
                        </td>
                        <td class="formValue">
                            <asp:TextBox ID="txtPassword" runat="server" CssClass="Textbox" TextMode="Password"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="valPasswordLength" runat="server" ControlToValidate="txtPassword"
                                SetFocusOnError="true" Display="Dynamic" ValidationExpression="\w{5,}" ErrorMessage="Password must be at least 5 characters long."
                                ToolTip="Password must be at least 5 characters long." ValidationGroup="CreateUserWizard1">*</asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="formLabel">
                            Re-Type Password
                        </td>
                        <td class="formValue">
                            <asp:TextBox ID="txtConfirmPass" runat="server" CssClass="Textbox" TextMode="Password"></asp:TextBox>
                            <asp:CompareValidator ID="valComparePasswords" runat="server" ControlToCompare="txtPassword"
                                SetFocusOnError="true" ControlToValidate="txtConfirmPass" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."
                                ValidationGroup="CreateUserWizard1">*</asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="formLabel" style="width: 30%;">
                            First Name
                        </td>
                        <td class="formValue" style="width: 70%;">
                            <asp:TextBox ID="txtFirstName" runat="server" CssClass="Textbox"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="formLabel">
                            Last Name
                        </td>
                        <td class="formValue">
                            <asp:TextBox ID="txtLastName" runat="server" CssClass="Textbox"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="formLabel">
                            Email Address
                        </td>
                        <td class="formValue">
                            <asp:TextBox ID="txtEmailAddress" runat="server" CssClass="Textbox"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" Text="*"
                                ErrorMessage="Email Address" ControlToValidate="txtEmailAddress" ValidationGroup="CreateUserWizard1"
                                Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="formLabel">
                            Designation
                        </td>
                        <td class="formValue">
                            <asp:TextBox ID="txtDesignation" runat="server" CssClass="Textbox"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="formLabel">
                            Cell Number
                        </td>
                        <td class="formValue">
                            <asp:TextBox ID="txtCellNumber" runat="server" CssClass="Textbox"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="formLabel">
                        </td>
                        <td class="formValue">
                            <asp:Button ID="btnProfileUpdate" runat="server" CausesValidation="true" ValidationGroup="CreateUserWizard1"
                                Text="Update Profile" OnClick="btnProfileUpdate_Click" />
                            <asp:Button ID="btnReset" runat="server" OnClientClick="javascript:this.form.reset(); return false;"
                                Text="Reset" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </center>
</asp:Content>
